package com.groupseven.happycampus.mapper;

import com.groupseven.happycampus.common.pojo.RepairPersonnel;
import com.groupseven.happycampus.common.pojo.RepairWorkOrder;
import com.groupseven.happycampus.common.vo.TypeWorkBarVo;
import com.groupseven.happycampus.common.vo.WorkOrderPieVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface RepairMapper {
    List<RepairPersonnel> repairPersonnelPageDate(Map<String, Object> params);

    int addPersonnel(RepairPersonnel personnel);

    int updatePersonnel(RepairPersonnel personnel);

    int deletePersonnel(Integer id);

    int deletesPersonnel(@Param("ids") String[] arrId);

    List<TypeWorkBarVo> typeWorkBarData();

    List<RepairWorkOrder> workOrderPageDate(Map<String, Object> params);

    int addWorkOrder(RepairWorkOrder workOrder);

    int updateWorkOrder(RepairWorkOrder workOrder);

    int deleteWorkOrder(Integer id);

    int deletesWorkOrder(@Param("ids") String[] arrId);

    List<WorkOrderPieVo> workOrderPieData();

    int giveEndTime(RepairWorkOrder workOrder);

    List<TypeWorkBarVo> workOrderBarData();

    List<RepairPersonnel> appointPageDate(Map<String, Object> params);

    int giveWork(RepairWorkOrder workOrder);
}
